package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;

@Data
@TableName("t_xdfeizhi_revision")
public class XdfeizhiRevision {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long xdfeizhiId;
    private String originalContent;
    private String revisedContent;

    //@TableField(fill = FieldFill.INSERT)
    //@JsonFormat(pattern = "yyyy-MM-dd")
    //@ApiModelProperty("修订日期")
    //private LocalDate revisionDate;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}